package com.lhc.eureka_client.controller;

import com.lhc.eureka_client.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName RibbonController
 * @Description:
 * @Author: asus
 * @CreateDate: 2020-12-24 10:58
 * @UpdateUser: asus
 * @UpdateDate: 2020-12-24 10:58
 * @UpdateRemark:
 * @Version: 1.0
 */
@RestController
@RequestMapping(value = "/eureka")
public class RibbonController {

    @Autowired
    HelloService helloService;

    @RequestMapping(value = "/SysHello")
    public String SysHello(@RequestParam String str){
        try {
            return helloService.hiService(str);
        }catch (Exception e){
            return e.getMessage();
        }

    }
}
